home *** CD-ROM | disk | FTP | other *** search
- package javax.tools;
-
- public class ToolProvider {
- private ToolProvider() {
- }
-
- public static JavaCompiler getSystemJavaCompiler() {
- if (javax.tools.ToolProvider.Lazy.compilerClass == null) {
- return null;
- } else {
- try {
- return (JavaCompiler)javax.tools.ToolProvider.Lazy.compilerClass.newInstance();
- } catch (Throwable var1) {
- return null;
- }
- }
- }
-
- public static ClassLoader getSystemToolClassLoader() {
- return javax.tools.ToolProvider.Lazy.compilerClass == null ? null : javax.tools.ToolProvider.Lazy.compilerClass.getClassLoader();
- }
- }
-